<script setup lang="ts">
import {reactive, toRef, toRefs} from "vue";

const person = reactive({
  name: "陶品奇",
  age: 18
})

const {name, age} = toRefs(person)

console.log(name.value, age.value)


const n = toRef(person, 'name')

const a = toRef(person, 'age')

console.log(n.value, a.value)

</script>

<template>

</template>
